// 导入验证包
const joi = require('joi')
// 定义用户名 密码规则
const username = joi.string().alphanum().min(1).max(10).required()
const password = joi.string().pattern(/^[\S]{6,12}$/).required()

exports.reg_login_schema = {
    body: {
        username, password
    }
}